//
//  NvProcedureTableViewOriginCell.m
//  NvSellerShow
//
//  Created by Meicam on 2017/2/9.
//  Copyright © 2017年 Meicam. All rights reserved.
//

#import "NvProcedureTableViewOriginCell.h"
#import "NvMakeFilmClipModel.h"

@implementation NvProcedureTableViewOriginCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.recordBtn addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(recordBtnpressed)]];
}

- (void)recordBtnpressed {
    if(self.delegate != nil && [self.delegate respondsToSelector:@selector(nvProcedureTableViewOriginCell:addClipFromCameraForNvMakeFilmClipModel:)] ==YES){
        [self.delegate nvProcedureTableViewOriginCell:self addClipFromCameraForNvMakeFilmClipModel:self.clipModel];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)photoBtnPressed:(id)sender {
    if(self.delegate != nil && [self.delegate respondsToSelector:@selector(nvProcedureTableViewOriginCell:addClipFromPhotoForNvMakeFilmClipModel:)] ==YES){
        [self.delegate nvProcedureTableViewOriginCell:self addClipFromPhotoForNvMakeFilmClipModel:self.clipModel];
    }
}

- (IBAction)recordMovie:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(nvProcedureTableViewOriginCell:addClipFromRecordForNvMakeFilmClipModel:)]) {
        [self.delegate nvProcedureTableViewOriginCell:self addClipFromRecordForNvMakeFilmClipModel:self.clipModel];
    }
}

@end
